﻿using DevExpress.ExpressApp.DC;
using DevExpress.Persistent.Base;
using EasyXaf.ObjectSpaces.OData;
using System.ComponentModel;

namespace EasyXaf.Sample.Module.BusinessObjects;

[DomainComponent]
[DefaultClassOptions]
[Microsoft.OData.Client.EntitySet("Tianqi")]
[DisplayName("天气")]
public class Tianqi : ODataObject<string>
{
    [DisplayName("日期")]
    public string riqi
    {
        get => GetPropertyValue<string>();
        set => SetPropertyValue(value);
    }

    [DisplayName("温度")]
    public string wendu
    {
        get => GetPropertyValue<string>();
        set => SetPropertyValue(value);
    }

    [DisplayName("天气")]
    public string tianqi
    {
        get => GetPropertyValue<string>();
        set => SetPropertyValue(value);
    }

    [DisplayName("风度")]
    public string fengdu
    {
        get => GetPropertyValue<string>();
        set => SetPropertyValue(value);
    }

    [DisplayName("空气质量")]
    public string pm
    {
        get => GetPropertyValue<string>();
        set => SetPropertyValue(value);
    }

    [DisplayName("城市")]
    public string city
    {
        get => GetPropertyValue<string>();
        set => SetPropertyValue(value);
    }
}
